package com.imooc.product.enums;

import lombok.Getter;

/**
 * @author : 浦希成
 * @date : 2018/7/30 10:18
 */
@Getter
public enum ResultEnum {
    /**
     * 返回结果枚举
     */
    PRODUCT_NOT_EXIST(1,"商品不存在"),
    PRODUCT_STOCK_ERROR(2,"库存不足")
    ;
   private Integer code;
   private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
